using Light;
using Light.Assets.Scripts.EventManager;
using UnityEngine;

namespace Dream.FirstLevel.UI
{
    public class SummaryPanelController : MonoBehaviour
    {
        private void Start()
        {
            gameObject.SetActive(false);
        }

        /// <summary>
        ///     给button进行调用
        ///     <para>传递开始下一波次的消息</para>
        /// </summary>
        public void EnterNextWave()
        {
            using var evt = EnterNextWaveEvent.Get();
            EventManager.SendEvent(evt);

            gameObject.SetActive(false);
        }
    }
}